//
//  OMOrderBaseTableCell.h
//  OMENGO_NEW
//
//  Created by 梁尚嘉 on 2017/5/3.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "BaseTableCell.h"
#import "OMOrderSubmitProductTableCell.h"
#import "OMOrder.h"
#import "OMOrderButtonAdapter.h"
#define OMOrderStatusViewHeight SM_SIZE(80)
#define OMOrderBottomViewHeight SM_SIZE(155)
#define OMOrderSubCellHeight SM_SIZE(150)
#define OMOrderMoreViewHeight SM_SIZE(90)
#define OBT_MIN_TABLE_HEIGHT(height) MIN((OMOrderSubCellHeight+1)*2,height)

@interface OMOrderBaseTableCell : BaseTableCell <UITableViewDelegate,UITableViewDataSource>
@property (nonatomic, strong) UIView *statusView;
@property (nonatomic, strong) UILabel *timeLabel;
@property (nonatomic, strong) UILabel *statusLabel;
@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) UILabel *infoLabel;
@property (nonatomic, strong) UIView *bottomView;
@property (nonatomic, weak) OMOrder *order;

@property (nonatomic, strong) NSArray *titles;

- (UIButton*)createButtonWithTitle:(NSString*)title
                         andIsFill:(BOOL)isFull;

- (void)configureButton:(UIButton *)button
              withTitle:(NSString *)title
              andIsFill:(BOOL)isFull;

+ (NSString *)orderStatusStr:(NSUInteger)status;

- (void)buttonTap:(UIButton *)sender;

+ (CGFloat)cellHeightWithOrder:(OMOrder*)order;
@end
